<?php require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('weblink_add'); ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>添加友情链接</title>
<link href="templates/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="templates/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="plugin/layer/layer.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/jquery.nicescroll.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/layindex.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/common.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="plugin/calendar/calendar.js"></script>

<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form").initValidform();
    });
</script>
</head>
<body class="mainbody">
<form name="form" id="form" method="post" action="weblink_save.php" onsubmit="return cfm_weblink();">
<!--导航栏-->
<div class="location">
  <a href="admin.php" class="back"><i></i><span>返回列表页</span></a>
  <a href="home.php" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <a href="weblink.php"><span>友情链接管理</span></a>
  <i class="arrow"></i>
  <span>添加友情链接</span>
      <a href="javascript:location.reload();" class="reload">刷新</a>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a class="selected" href="javascript:;">添加友情链接</a></li>
      </ul>
    </div>
  </div>
</div>

<div class="tab-content">
  <dl>
    <dt>链接类型</dt>
    <dd>
      <div class="rule-single-select">
		 <select name="classid" id="classid" datatype="*" errormsg="请选择链接类型" sucmsg=" ">
			 <option value="">请选择链接类型...</option>
				<?php GetAllType('#@__weblinktype','#@__weblinktype','id'); ?>
		</select>
      </div>
    </dd>
  </dl>
  <dl>
    <dt>网站名称</dt>
    <dd>
   <dd><input  name="webname"  type="text" class="input normal"  /> <span class="Validform_checktip">*</span></dd>
    </dd>
  </dl>
  <dl>
    <dt>跳转链接</dt>
    <dd><input  name="linkurl"  type="text" datatype="url" class="input normal"  /> <span class="Validform_checktip">*</span></dd>
  </dl> 
   <dl>
    <dt>网站描述</dt>
   
	<dd><textarea name="webnote" id="webnote" datatype="" class="input normal" style="margin:7px 0;"></textarea> <span class="Validform_checktip"></span></dd>
  </dl> 
  <dl>
    <dt>缩略图片</dt>
    <dd>
     <input name="picurl" type="text" id="picurl" class="input normal" value="" /> <div class="upload-box upload-img">
	<div class="webuploader-pick"  onmousemove="this.className='webuploader-pick webuploader-pick-hover'" onmouseout="this.className='webuploader-pick'" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php echo $cfg_max_file_size; ?>,'picurl')">浏览...</div> 
	<span class="rePicTxt">
	<input type="checkbox" name="rempic" id="rempic" value="true" />
	远程</span></div>
    </dd>
  </dl>
   <dl>
    <dt>排列排序</dt>
    <dd><input type="text" name="orderid" id="orderid" class="input small" value="<?php echo GetOrderID('#@__weblink'); ?>" /></dd>
  </dl> 
  <dl>
    <dt>发布时间</dt>
    <dd>
      <input name="posttime" type="text" value="<?php echo GetDateTime(time()); ?>" id="posttime" class="input rule-date-input"  datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}\s{1}(\d{1,2}:){2}\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
      <span class="Validform_checktip">不选择默认当前发布时间</span>
	<script type="text/javascript">
				date = new Date();
				Calendar.setup({
					inputField     :    "posttime",
					ifFormat       :    "%Y-%m-%d %H:%M:%S",
					showsTime      :    true,
					timeFormat     :    "24"
				});
				</script>
    </dd>
  </dl>
    <dl>
    <dt>审　核</dt>
    <dd>
      <div class="rule-multi-radio">
        <span id="checkinfo"><input id="checkinfo_1" type="radio" name="checkinfo" value="true" checked="checked" /><label for="checkinfo_1">审核</label>
		<input id="checkinfo_2" type="radio" name="checkinfo" value="false" /><label for="checkinfo_2">未审</label>
		</span>
      </div>
    </dd>
  </dl>
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-wrap">
    <input type="submit" name="btnSubmit" value="提交保存" class="btn" />
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
	<input type="hidden" name="action" id="action" value="add" />
  </div>
</div>
<!--/工具栏-->
</form>
</body>
</html>
